from django.db import models


class BaseModel(models.Model):
    update_by = models.CharField('更新者', max_length=100, null=True, blank=True)
    update_time = models.DateTimeField('更新时间', auto_now=True)
    create_by = models.CharField('创建者', max_length=100, null=True, blank=True)
    create_time = models.DateTimeField('创建时间', auto_now_add=True)
    remarks = models.CharField('备注', max_length=500, null=True, blank=True)

    class Meta:
        abstract = True
